<?php get_header(); ?>
<!--ThanhDH: Single for extra post_type-->
<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
    <!-- post start -->
    <div class="post_box" id="post-<?php the_ID(); ?>">
      <div class="breadcrumb">
        <h1><!--<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">--><?php the_title(); ?><!--</a>--></h1>
      </div>
      <div class="post_title">
        <!--<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>-->
      </div>
      <div class="post_details"><?php //the_time('d/m/Y');//the_time('F jS Y') ?><!-- | Posted by <?php the_author_posts_link(); ?> <?php edit_post_link('edit'); ?>--></div>
      <div class="post_content">
      	<?php the_content(''); ?>
        <?php
        /*MrT: style this for display documents*/
        
        ?>
      </div>
      <div class="post_footer">
        <div class="post_footer_left">
        	<?php 
				if(is_single())
				{
					comments_number('No Comment', '1 Comment', '% Comments');
				}
				else
				{
					comments_popup_link('No Comment', '1 Comment', '% Comments'); 
				}
			?>
             <!--| <a href="<?php the_permalink(); ?>">Permalink</a> | Subscribe <a href="<?php bloginfo('rss2_url'); ?>">Post</a> or <a href="<?php bloginfo('comments_rss2_url'); ?>">Comment</a>-->
        </div>
        <div class="post_footer_right">
        	<!-- AddThis Button BEGIN -->			
			<!--<script type="text/javascript">var addthis_pub="izwan00";</script>
            <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '<?php urlencode(the_permalink()); ?>', '<?php urlencode(the_title()); ?>')" onmouseout="addthis_close()" onclick="return addthis_sendto()">-->
        	<img src="<?php bloginfo('template_directory'); ?>/images/bookmark.gif" width="104" height="30" border="0" alt="Share / Bookmark This Post..." /><!--</a>--></div>
            <!--</a>-->
		    <!--<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>-->
            <!-- AddThis Button END -->
      </div>
    </div>
    <!-- post end -->
    <!-- post info -->
    <!--<div class="post_info">
		This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?>. You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed. 
          <?php 
            if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) 
            {
                // Both Comments and Pings are open 
                ?>
                You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
        
            <?php } 
            elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) 
            {
                // Only Pings are Open 
                ?>
                Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
        
            <?php } 
            elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) 
            {
                // Comments are open, Pings are not ?>
                You can skip to the end and leave a response. Pinging is currently not allowed.
        
            <?php } 
            elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) 
            {
                // Neither Comments, nor Pings are open ?>
                Both comments and pings are currently closed.
            <?php } ?>
    </div>-->
    <!-- post info end -->
    
    <?php //include (TEMPLATEPATH . '/ads1.php'); ?>
    
    <?php //include (TEMPLATEPATH . '/related_posts.php'); ?>
    
    <?php //include (TEMPLATEPATH . '/ads2.php'); ?>
        
    <?php comments_template(); ?>
    <?php endwhile; ?>
<?php else: ?>  
	<div class="post_message"><?php echo _MRT_LANG_SEARCH_NOTHING_FOUND; ?></div>
<?php endif; ?>

<?php get_sidebar(); ?>
<?php get_footer(); ?>